package com.dog.auth.service;

import com.dog.framework.core.exception.CaptchaException;

import java.io.IOException;
import java.util.Map;

/**
 * @author liuxk
 * @date 2023/12/19 17:07
 *
 */
public interface ImageCodeService {

    /**
     * 生成验证码
     */
    Map<String, Object> createCaptcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    void checkCaptcha(String key, String value) throws CaptchaException;

}
